from rest_framework.filters import BaseFilterBackend
from django_filters import rest_framework as filters
from .models import UserProfile


class CheckUserFilter(filters.FilterSet):
	username = filters.CharFilter(lookup_expr='icontains')

	class Meta:
		model = UserProfile
		fields = ['username', 'password']